package com.lanyam.travel.base.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lanyam.travel.base.entity.Role;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rosson
 * @since 2020-01-24
 */
public interface RoleMapper extends BaseMapper<Role> {

	
	List<Role> selectRolesByUserId(String userId);

	@Select("select * from role where power =(select min(power) from role)")
	Role getMinPowerRole();
	
}
